﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using Lyon.Register.WinForm;

namespace Lyon.Register.WinForm
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            SimpleRegister.Start("注册号生成器");
            if (!SimpleRegister.IsAuthenticated)
            {
                RegisterForm register = new RegisterForm();
                if (register.ShowDialog() != DialogResult.OK)
                    return;
            }
            Application.Run(new MainForm());
        }
    }
}
